﻿using System;
using System.Collections.Generic;
using System.Data;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectSunny.Controls
{
    public partial class ContentTenMienHosting : System.Web.UI.UserControl
    {
        public string namecate;
        public string introtenmienhosting;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["idcat1"] != null)
            {
                string id = Request.QueryString["idcat1"].ToString();
                DataTable dt = DAL.DCollector.DBCollector.Instance.CallSQL1Param("select * from tbl_Category where Category_ID1="+id, true);

                namecate = dt.Rows[0]["Category_Name"].ToString();
                introtenmienhosting = dt.Rows[0]["Category_Description"].ToString();
            }

        }
    }
}